package com.kgc.test;

public class Feeder {

    public static void main(String[] args) {
        // 对象变量引用(指针/句柄 、内存地址)
        Animal animal = new Lion();
        animal.eat();


        //animal = new Lion();
        //animal.eat();
    }



    //喂养
    /*public static void feed(Animal[] animals){
        if(animals == null) return;
        for (int i = 0; i < animals.length; i++) {
             animals[i].eat();
        }
    }*/
}
